package org.accp.controller;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.accp.dao.HisroleDao;
import org.accp.dao.IllnessDao;
import org.accp.dao.RegisterTypeDao;
import org.accp.pojo.Hisrole;
import org.accp.pojo.Illness;
import org.accp.pojo.RegisterType;
import org.accp.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.*;
@RequestMapping("/rtype")
@Controller
@CrossOrigin("*")


public class RegisterTypeContrller {
    @Autowired
    private RegisterTypeDao registerTypeDao;

    @RequestMapping("/search")
    @ResponseBody
    public List<RegisterType> search() throws Exception {
        return registerTypeDao.getAll();
    }

}
